import {
  useEffect,
  useLayoutEffect,
} from 'react'
import { canUseDom } from '@/library/tool-kits/can-use-dom'

export const useIsomorphicLayoutEffect = canUseDom ? useLayoutEffect : useEffect
